body {
    font-family: Arial, sans-serif;
    text-align: center;
}

#image-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#image2 {
    clip-path: inset(0 50% 0 0);
}

#slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

#controls {
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
}

.loading {
    font-size: 20px;
    margin-top: 20px;
}